package com.ruoyi.eamp.service.impl;

import java.util.List;

import com.ruoyi.eamp.domain.EampSrMan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eamp.mapper.EampSrLogMapper;
import com.ruoyi.eamp.domain.EampSrLog;
import com.ruoyi.eamp.service.IEampSrLogService;

/**
 * 库房操作记录Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-09
 */
@Service
public class EampSrLogServiceImpl implements IEampSrLogService
{
    @Autowired
    private EampSrLogMapper eampSrLogMapper;

    /**
     * 查询库房操作记录
     *
     * @param logId 库房操作记录主键
     * @return 库房操作记录
     */
    @Override
    public EampSrLog selectEampSrLogByLogId(Long logId)
    {
        return eampSrLogMapper.selectEampSrLogByLogId(logId);
    }

    /**
     * 查询库房操作记录列表
     *
     * @param eampSrLog 库房操作记录
     * @return 库房操作记录
     */
    @Override
    public List<EampSrLog> selectEampSrLogList(EampSrLog eampSrLog)
    {
        return eampSrLogMapper.selectEampSrLogList(eampSrLog);
    }

    /**
     * 新增库房操作记录
     *
     * @param eampSrLog 库房操作记录
     * @return 结果
     */
    @Override
    public int insertEampSrLog(EampSrLog eampSrLog)
    {
        return eampSrLogMapper.insertEampSrLog(eampSrLog);
    }

    /**
     * 修改库房操作记录
     *
     * @param eampSrLog 库房操作记录
     * @return 结果
     */
    @Override
    public int updateEampSrLog(EampSrLog eampSrLog)
    {
        return eampSrLogMapper.updateEampSrLog(eampSrLog);
    }

    /**
     * 批量删除库房操作记录
     *
     * @param logIds 需要删除的库房操作记录主键
     * @return 结果
     */
    @Override
    public int deleteEampSrLogByLogIds(Long[] logIds)
    {
        return eampSrLogMapper.deleteEampSrLogByLogIds(logIds);
    }

    /**
     * 删除库房操作记录信息
     *
     * @param logId 库房操作记录主键
     * @return 结果
     */
    @Override
    public int deleteEampSrLogByLogId(Long logId)
    {
        return eampSrLogMapper.deleteEampSrLogByLogId(logId);
    }




}
